//List of Information

   public class LinkedListAd
   {
   
      Node head,tail,temp;
   		
      public LinkedListAd()
      {
      
      }
		
		public boolean isEmpty()
		{
		
			if(head == null)
			{
			
				return true;
			
			}
			else
			{
			
				return false;
			
			}
		
		}
   
      public void add(String ad, String info, String port)
      {
      
         if(head == null)
         {
         
            head = new Node();
         
            head.setAddress(ad);
            head.setInfo(info);
				head.setPort(port);
         
            tail = head;
         
         }
         else
         {
                  
            temp = new Node();
            temp.setAddress(ad);
            temp.setInfo(info);
				temp.setPort(port);
         
            tail.next = temp;			
            tail = tail.next;
         
         }
      
      }
   
      public String print()
      {
      
         temp = head;
         String output = "";
      
         if(temp != null)
         {
         	
            do
            {
            
               output += temp.getAddress() + ":" + temp.getPort() + " --> " + temp.getInfo() + "\n";
					
					temp = temp.next;
            
            }
            while(temp != null);
         
         }
      
         return output;
      }
   }

   class Node
   {
   
      String address, port, info;
      Node next;
   
      public void setAddress(String in)
      {
      
         this.address = in;
      
      }
   
      public void setInfo(String in)
      {
      
         this.info = in;
      
      }
		
		public void setPort(String in)
		{
		
			this.port = in;
		
		}
   
      public String getAddress()
      {
      
         return this.address;
      
      }
   
      public String getInfo()
      {
      
         return this.info;
      
      }
		
		public String getPort()
		{
		
			return this.port;
		
		}
   
      public void setNext(Node in)
      {
      
         this.next = in;
      
      }
   }